/**
 * v-numberFloatOnly 只允许输入正整数
 * Copyright (c) 2019 ruoyi
 */

export default {
  bind(el) {
    el.handler = function (event) {
      const input = event.target;
      input.value = input.value
        .replace(/\D/g,'')
    };
    el.addEventListener("input", el.handler);
  },
  unbind(el) {
    el.removeEventListener("input", el.handler);
  },
};
